<template>
  <div id="app">
    <div v-if="$route.meta.keepAlive">
    <header-nav></header-nav>
    <router-view></router-view>
    <footer-nav></footer-nav>
    </div>
    <router-view  v-if="!$route.meta.keepAlive"></router-view>
  </div>
</template>

<script>

import header from '@/components/Header.vue'
import footer from '@/components/Footer.vue'
export default {
   components:{
    headerNav:header,
    footerNav:footer,
  }
}
</script>

<style>
</style>
